<div id="module" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
	<div class="block_header ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
		   
                <?php if(isset($nb_publication_visible)&&($nb_publication_visible>0)) :?> 
                        
					<h1>Publications récentes sur le tag '<?php echo $tags; ?>'</h1>
				<?php endif;?>     
                   
	</div>
	<div id="publication_liste" class="listing block_content ui-tabs-panel ui-widget-content ui-corner-bottom">
		<div class="description listing">
		 <p><?php $nb_publication_visible ?></p>
                  <?php if(isset($nb_publication_visible)&&($nb_publication_visible>0)) :?> 
                    <h4>Liste des publications concernant le tag <span class="tag_link"><?= $tags ?> : </span></h4>
                    <br/>
                  <?php endif;?>  
                  
		  <?php if(isset($liste_publications) && count($liste_publications) > 0) : 
				foreach($liste_publications as $publication): ?>
				<?php if($liste == 'publications_recentes_tag' &&  $publication->id_utilisateur == $this->session->userdata('id_utilisateur') ):
					?>
					<a href="<?= base_url() ?>publication/historique/<?= $publication->id_publication?>" class="historique">l'historique</a> 
					<a href="<?= base_url() ?>publication/modification_publication/<?= $publication->id_publication?>" class="edit" id="clic_modif_article">Modifier</a>
				          
                    <a href="<?= base_url() ?>publication/supprimer/<?=$liste ?>/<?= $publication->id_publication?>" class="delete" id="clic_suppr_publication">Supprimer</a> 
                 <?php endif;?> 
                              
			
			<div class="publication">
                       
				
                        <br/>  
							<?php 
                                 if(isset($publication->info) && count($publication->info) > 0) : ?>
                                    
									<?php
                                    foreach($publication->info as $info) : 
                                    
                          ?>
								<h3 class="nom"><?= $info->titre ?></h3>
				
								<?= $info->contenu ?></p>
						<?php endforeach; endif;?>
				       <?php
					if(count($publication->tags) > 0): ?>
						<strong>Tags : </strong>
					<?php foreach($publication->tags as $tag): ?>
						<span class="tag_link"><a href="<?= base_url().'publication/tag_search/'.$tag->id_tag ?>"><?= $tag->libelle ?></a></span>
					<?php endforeach;
					endif; ?>
			
             </div>
                                                        
			
                                                        
                                               
                                    
                                                        
		<?php endforeach;
		else: ?>
			<p>Il n'y a aucune publication</p>
		<?php
		endif;
		?>
		</div>
	</div>
</div>
